import request from '@/utils/request'
//拿到所有医生数据
export  const  GetAllDocter = (data)=>request({
  url:'/pc/dockers/list',
  method:'get',
  params:{
    ...data
  }
})
//新增医生
export const AddDocter =(data)=>request({
    url:'/pc/dockers/add',
    method:'post',
    data
})
//删除医生
export const DeleteDocter = (id)=>request({
  url:`/pc/dockers/delete/${id}`,
  method:'delete'
})
//修改医师
export const UpdateDocter = (data)=>request({
    url:'/pc/dockers/updateDocker',
    method:'post',
    data
})
//得到所有的朋辈数据
export const GetAllFriend = ()=>request({
    url:'/pc/peerAssistance/list',
    method:'get'
})
//新增朋辈
export const AddFriend = (data)=>request({
    url:'/pc/peerAssistance/insert',
    method:'post',
    data
})
//修改朋辈
export const UpdateFriend = (data)=>request({
    url:'/pc/peerAssistance/edit',
    method:'post',
    data
})
//删除朋辈
export const DeleteFriend = (id)=>request({
    url:'/pc/peerAssistance',
    method:'get',
    params:{
        id
    }
})
//拿到评论
//拿到所有评论
export const getAllCommentary = ({articleId, current, size}) =>request({
	url: '/comment/wx/listAllComments',
	method: 'get',
	params: {
		articleId,
		current,
		size
	}
})
//删除评论
export const DeleteCommentary = (id)=>request({
    url:'/comment',
    method:'get',
    params:{
        id
    }
})